


        var functnActiveDelay = null;

        var coprSwp = new Swiper('.coprSwp',{
            loop:true,
            slidesPerView: 6,
            autoplay: {
                    disableOnInteraction: false,
            },
            breakpoints:{
                    767:{
                            slidesPerView:2
                    }
            }
        })

        

        $(document).ready(function(){
            

            $('main .function .txt .item:eq(0) .des').height($('main .function .txt .item:eq(0) .des span').height());

            $('main .function .txt .item').click(function(){
                if($(this)[0].className.indexOf('active') >= 0) return false;
                var ind = $(this).index();
                $('main .function .txt .item .des').removeClass('react');
                var This = $(this);
                clearTimeout(functnActiveDelay);
                setTimeout(function(){
                    $('main .function .txt .item.active .des')[0].style.height = '';
                    $('main .function .txt .item').removeClass('active');
                },10)
                setTimeout(function(){
                    $('main .function .palace p').removeClass('active');
                    $('main .function .palace p').eq(ind).addClass('active');
                    This.addClass('active');
                    var innerH = This.find('.des span').height();
                    This.find('.des').height(innerH);
                },20)
                functnActiveDelay= setTimeout(function(){
                    $('main .function .txt .item.active').find('.des').addClass('react');
                },330)
            })

            
        })